package com.novel.utils;

import com.alibaba.fastjson.JSON;
import lombok.Data;

import java.io.Serializable;

/**
 * controller统一返回结果
 *
 * @author tanghao
 * @date 2021/7/31
 */
@Data
public class ResultVO<T> implements Serializable {

    private Integer code;
    private String message;
    private T data;

    public String convert(){
        return  JSON.toJSONString(this);
    }
}
